<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定</title>
</head>
<body>
<div>
    {{info}}

    <!--v-model="变量"，是双向绑定，变量值的改变会影响页面控件，控制值的改变也会影响变量-->
    <input type="text" v-model="info">

    <h3>注册页面</h3>
    <input type="text" placeholder="请输入用户名" v-model="user.username">
    <input type="password" placeholder="请输入用户名" v-model="user.password">
</div>

<script src="js/vue.min.js"></script>

<script>
    let v = new Vue({
        el: "body>div",
        data: {
            info: "双向绑定", user: {username: "", password: ""}
        }
    })
</script>

</body>
</html>